﻿@model HelloMinasan.Web.Song.ViewModels.UpdateProfileModel
@{
    ViewBag.Title = "UpdateProfile";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(document).ready(function ()
    { $('#dateTimeBirthday').datepicker({ dateFormat: "mm/dd/yy" }); });
</script>
@using (Html.BeginForm("UpdateProfile", "Account", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <h2>Update Profile</h2>
    <div style=" font: normal 12px arial; color:red; text-align:left;"> 
    @Html.ValidationSummary()
    @Html.HiddenFor(x => x.Username);
    </div>
    <!-- InstanceBeginEditable name="EditRegion2" -->
    <div style="display:table; width:100%">
    <table class="inputForm contentSectionInside" style="width: 100%">
        <tbody>
            <tr>
                <th class="th100" align="left" style="width:150px;">
                    @Html.LabelFor(m => m.UserStatus)
                </th>
                <td>
                    @Html.TextAreaFor(m => m.UserStatus, new { @class = "textareaClass", style = "width: 50%; padding-left: 5px;", maxlength = 100 })
                </td>
            </tr>
            <tr>
                <th class="th100" align="left" style="width:150px;">
                    @Html.LabelFor(m => m.Fullname)<span class="requirement">(*)</span>
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Fullname, new { style = "width: 50%; padding-left: 5px;", maxlength = 50 })
                </td>
            </tr>
            <tr>
                <th class="th100" align="left" style="width:150px;">
                    @Html.LabelFor(m => m.Email)<span class="requirement">(*)</span>
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Email, new { style = "width: 50%; padding-left: 5px;", maxlength = 50 })
                    @Html.ValidationMessageFor(m => m.Email)
                </td>
            </tr>
            <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.DateOfBirth)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.DateOfBirth, new { style = "text-align: center; float:left; padding-left: 5px;", maxlength = 50, id = "dateTimeBirthday", @Value = Model.DateOfBirth.ToString("MM/dd/yyy"), @class="txtdatepicker" })<p style="margin-left: 10px; float:left;">(MM/dd/yyyy)</p>
                    @Html.ValidationMessageFor(m => m.DateOfBirth)
                </td>
            </tr>
            <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.Descriptions)
                </th>
                <td>
                    @Html.TextAreaFor(m => m.Descriptions, new { @class = "textareaClass", style = "width: 50%; padding-left: 5px;", maxlength = 50 })
                    @Html.ValidationMessageFor(m => m.Descriptions)
                </td>
            </tr>
            <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.Avatar)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.ImageFile, new { type = "file" })
                </td>
            </tr>
            <tr>
            <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.MobilePhone)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.MobilePhone)
                </td>                   

            </tr>
            <tr>
                <th class="th100" align="left"></th>
                <td>                    
                    @Html.CheckBoxFor(n => n.Checkvalidate)
                    @Html.LabelFor(x => x.Checkvalidate, new {@style="font-size: 12px;" })
                </td>
            </tr>
            <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.Telephone)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Telephone)
                </td>
            </tr>
            <tr>
                 <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.Company)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Company, new { style = "width: 50%; padding-left: 5px;", maxlength = 100 })
                </td>
            </tr>
            <tr>
                 <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.Position)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Position, new { style = "width: 50%; padding-left: 5px;", maxlength = 50 })
                </td>
            </tr>
            <tr>
                <tr>
                 <tr>
                <th class="th100" align="left">
                    @Html.LabelFor(m => m.College)
                </th>
                <td>
                    @Html.TextBoxFor(m => m.College, new { style = "width: 50%; padding-left: 5px;", maxlength = 100 })
                </td>
            </tr>
            <tr>
                <td colspan="2" style="width: 100px;"><br /><input type="submit" class="buttonClass" value="Update" /> @ViewBag.Message</td>
                <td colspan="2"><br /><input type="button" style="float:left;" class="buttonClass" value="Next to Home" onclick="location.href = '/Home/Index'"/></td>
            </tr>
        </tbody>
    </table>
</div>
}